package com.easy.frame.servers.sys.entity.area;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.easy.frame.base.basic.pojo.BaseTreePO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 区域表
 *
 * @author tp
 * @since 2021-06-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "sys_area", autoResultMap = true)
public class SysArea extends BaseTreePO {

    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("租户ID")
    private Long tenantId;

    @ApiModelProperty("项目ID")
    private Long projectId;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("编号")
    private String code;

}
